package com.ns.school.service.edu;

import com.ns.school.po.edu.BorrowBookDB;
import com.ns.school.po.edu.LayuiResult;

import java.util.List;

public interface BorrowBookService {
    List<BorrowBookDB> findBorrowBook(BorrowBookDB borrowBookDB);

    int checkBorrow(BorrowBookDB borrowBookDB);

    BorrowBookDB findBorrowById(Integer id);

    BorrowBookDB findReviewById(Integer id);

    int revertBook(BorrowBookDB borrowBookDB);

    void borrowBook(LayuiResult result, BorrowBookDB borrowBookDB);

    void auditFailBooks(LayuiResult result,BorrowBookDB borrowBookDB);

    void auditBorrow(LayuiResult result,BorrowBookDB borrowBookDB);

    BorrowBookDB editBorrowBook(Integer id);

}
